package com.example.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import com.example.converter.LocalDateTimeConverter;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * Dict导出实体类
 *
 * @author wsl
 */
@Data
public class DictVo {

    @ExcelProperty(value = "字典编号",index = 0)
    private Integer id;

    @ExcelProperty(value = "字典名称",index = 1)
    private String name;

    @ExcelProperty(value = "字典编码",index = 2)
    private String code;

    @ExcelProperty(value = "值",index = 3)
    private Integer value;

    @ExcelProperty(value = "备注",index = 4)
    private String remark;

    @ExcelProperty(value = "父编号",index = 5)
    private Integer parentId;

    @ExcelProperty(value = "是否启用",index = 6)
    private Integer enabled;

    @ExcelProperty(value = "创建时间",index = 7, converter = LocalDateTimeConverter.class)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    private LocalDateTime createTime;

    @ExcelProperty(value = "修改时间",index = 8,converter = LocalDateTimeConverter.class)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    private LocalDateTime updateTime;
}
